//
//  AppDelegate.swift
//  DSDweibo
//
//  Created by Mac on 15/9/7.
//  Copyright © 2015年 FSK. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        //------------
        // 设置导航条和工具条的外观
        // 因为外观一旦设置全局有效, 所以应该在程序一进来就设置
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        
        print("------+++++++++++1234567890")
        window = UIWindow(frame: UIScreen .mainScreen().bounds)
        
        print(window)
        window?.backgroundColor = UIColor.blueColor()
        
        window?.rootViewController = LYMainViewController()
        
        window?.makeKeyAndVisible()
        
        return true
    }

    

}

